#ifndef _FM_REV_
#define _FM_REV_



#ifdef __C51__
#include "fm_api.h"
#include "typedef.h"
#include "key.h"
#include "disp.h"
#include "msgfor_hot.h"
#include "Custom_config.h"
#include "KT_AMFMdrv.h"
#include "bk1088.h"

void fm_radio(void);
void fm_rev( void );
void scan_fre(void);
void dealmsgforfm(u8 msg);
void enter_fm_rev(void);
void FM_Chip_Set_Vol(u8 fm_vol);
 void FM_Chip_SetMute(bool flag);

#endif
#ifdef  FM_MAX_FRE
#define MAX_FRE    FM_MAX_FRE
#else
#define MAX_FRE    1080
#endif

#ifdef FM_MIN_FRE
#define MIN_FRE	   FM_MIN_FRE
#else
#define MIN_FRE	   870
#endif
#define MAX_CHANNL 50


#ifdef USE_BK1088_FM
#define AM_MAX_FRE    1710
#define AM_MIN_FRE	   522
#else
#define AM_MAX_FRE    1710
#define AM_MIN_FRE	   504
#endif

#define RDAFM_ID	0x5888
#define RDAFM_ID1	0x5801
#define RDAFM_ID2	0x5802
#define RDAFM_ID3	0x5803
#define RDAFM_ID4	0x5804
#define RDAFM_ID5	0x5808

#define CL6017G_ID	0x0A
#define BK1080_ID	0x1080
#define SP3777_ID	0x07
#define AR1000_ID	0x1010
#define QN8035_ID	0x84
#define KT0830EQ_ID	0xb002
#define BK1088_ID	0x1080
#define KT0913_CHIP_ID		0x4B54


typedef enum {

	SEARCH_UP =0,
	SEARCH_DN,
}AUTO_DIR;
#endif
